<script setup>
import { reactive } from "vue";
import {modListsApi} from '../util/request'

const data = reactive({
    id: "",
    name:"",
    price: ""
})

async function mod(da) {    
    let p = await modListsApi(da).then(res => {})
}
</script>

<template>
    <p>更新水果价格</p>

    <van-cell-group inset>
        <van-field v-model="data.id" label="水果id" type="text"/>
        <van-field v-model="data.price" label="价格" type="text"/>
        <van-field v-model="data.name" label="name" type="text"/>
    </van-cell-group>
    <van-button type="primary" @click="mod(data)">主要按钮</van-button>
</template>

<style>

</style>
